package com.ivan.eduservice.entity.node;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Ivan
 * @Description 课程的树形结构
 * @Date 2020/8/8 19:48
 */
@Data
public class SubjectNode {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("名称")
    private String title;

    @ApiModelProperty("父id")
    private String parentId;

    @ApiModelProperty("子集合")
    private List<SubjectNode> children = new ArrayList<>();

}
